package eu.irreality.dai.fov;

import eu.irreality.dai.util.Position;
import eu.irreality.dai.world.gen.LevelGenerator;
import eu.irreality.dai.world.level.Level;

public class SimpleVisibilityBlockingCriterion implements
	VisibilityBlockingCriterion
{

    @Override
    public boolean blocksVision(Level l, Position p)
    {
	if (l.get(p).contains(LevelGenerator.WALL)
		|| l.get(p).contains(LevelGenerator.CLOSED_DOOR))
	    return true;
	else
	    return false;
    }

}
